package com.example.bledemo.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Peter_Z.
 * <p>
 * Date: 2025/8/6 0006
 */
public class MapListData {
    private long code;
    private String message;
    private List<MapData> data;

    public long getCode() {
        return code;
    }

    public void setCode(long code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public List<MapData> getData() {
        return data;
    }

    public void setData(List<MapData> data) {
        this.data = data;
    }

    public static class MapData implements Serializable {
        private String id;
        private String mapName;
        private int deptId;
        private String image;
        private String zipImage;
        private Double ration; // 根据你的需求，这个字段可能是int、float或double
        private int mapLevel;
        private String mapRange;
        private int basePosX;
        private int basePosY;
        // 假设createTime是一个字符串，你可以使用java.time.LocalDateTime来解析它
        // private LocalDateTime createTime; // 如果你使用LocalDateTime
        private String createTime; // 如果你直接使用字符串

        public MapData(String id, String mapName, int deptId, String image, String zipImage, Double ration, int mapLevel, String mapRange, int basePosX, int basePosY, String createTime) {
            this.id = id;
            this.mapName = mapName;
            this.deptId = deptId;
            this.image = image;
            this.zipImage = zipImage;
            this.ration = ration;
            this.mapLevel = mapLevel;
            this.mapRange = mapRange;
            this.basePosX = basePosX;
            this.basePosY = basePosY;
            this.createTime = createTime;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getMapName() {
            return mapName;
        }

        public void setMapName(String mapName) {
            this.mapName = mapName;
        }

        public int getDeptId() {
            return deptId;
        }

        public void setDeptId(int deptId) {
            this.deptId = deptId;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getZipImage() {
            return zipImage;
        }

        public void setZipImage(String zipImage) {
            this.zipImage = zipImage;
        }

        public double getRation() {
            return ration;
        }

        public void setRation(Double ration) {
            this.ration = ration;
        }

        public int getMapLevel() {
            return mapLevel;
        }

        public void setMapLevel(int mapLevel) {
            this.mapLevel = mapLevel;
        }

        public String getMapRange() {
            return mapRange;
        }

        public void setMapRange(String mapRange) {
            this.mapRange = mapRange;
        }

        public int getBasePosX() {
            return basePosX;
        }

        public void setBasePosX(int basePosX) {
            this.basePosX = basePosX;
        }

        public int getBasePosY() {
            return basePosY;
        }

        public void setBasePosY(int basePosY) {
            this.basePosY = basePosY;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        @Override
        public String toString() {
            return "MapData{" +
                    "id='" + id + '\'' +
                    ", mapName='" + mapName + '\'' +
                    ", deptId=" + deptId +
                    ", image='" + image + '\'' +
                    ", zipImage='" + zipImage + '\'' +
                    ", ration=" + ration +
                    ", mapLevel=" + mapLevel +
                    ", mapRange='" + mapRange + '\'' +
                    ", basePosX=" + basePosX +
                    ", basePosY=" + basePosY +
                    ", createTime='" + createTime + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "MapsData{" +
                "code=" + code +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
